<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Titeeeeee</title>
    <!-- 引入样式 -->
    <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
    <!-- 引入组件库 -->
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <script src="https://unpkg.com/element-ui/lib/index.js"></script>

</head>
<body>
 <div id="ids" th:if="!${#strings.isEmpty(name)}">
     <div id="app">
         <el-button @click="visible = true">Button</el-button>
         <el-dialog :visible.sync="visible" title="Hello world">
             <p>Try Element</p>
         </el-dialog>
     </div>

 </div>
 <script>
     new Vue({
         el: '#app',
         data: function() {
             return { visible: false }
         }
     })
 </script>
</body>
</html>